module controller.source_ctrl;

import vibe.http.server : HTTPServerRequest, HTTPServerResponse;

import service.cate_service;

import darktemple.render;

/** 
 * 资源页
 */
void getSourcePage (scope HTTPServerRequest req, scope HTTPServerResponse res)
{
    auto categoryList = getCategoryList();

    string html = renderFile!("source.tmpl", categoryList);
    res.writeBody(html, "text/html; charset=utf-8");
}
